const Router = require('koa-router');
const login = require('./login');
const listArchives = require('./listArchives');

const router = new Router();

// 指定一个url匹配
router.get('/', async (ctx) => {
    ctx.type = 'html';
    ctx.body = '<h1>hello world!</h1>';
})

router.use('', login.routes());
router.use('', listArchives.routes());

module.exports = router;